set(CMAKE_SYSTEM_NAME Linux)
#如果是arm,就写arm;这里是riscv
set(CMAKE_SYSTEM_PROCESSOR arm)

set(tools "/mnt/sdb2/work/NUC970/hmi970_buildroot/output/host")
set(CMAKE_C_COMPILER ${tools}/bin/arm-none-linux-gnueabi-gcc)
set(CMAKE_CXX_COMPILER ${tools}/bin/arm-none-linux-gnueabi-g++)

